<template>
  <div>
    <div class="nav-list">
      <div class="left">
        <i class="menu"></i>
      </div>
      <div class="logo">
        <img src="../assets/images/logo_r.png" alt="">
        <h1>及物</h1>
      </div>
      <div class="right">
        <i class="userinfo"></i>
        <i class="shopinfo"></i>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'publicNav',
  props: {
    msg: String
  }
}
</script>
<style scoped>
  .nav-list{
    display: flex;
    width:100%;
    height:80px;
  }
  .nav-list div{
    flex:1;
    height:50px;
    padding:15px 0;
  }
  div.logo{
    text-align: center;
  }
  div.logo>img{
    width: 47px;
    height:47px;
    display: inline-block;
    vertical-align: middle;
  }
  div.logo>h1{
    display: inline-block;
    font-size: 40px;
    color:#d0131c;
    font-weight: 600;
    line-height:40px;
    vertical-align: middle;
  }
  .nav-list div i{
    display: inline-block;
    width:36px;
    height:36px;
    background-size: cover;
    margin: 7px;
  }
  div.right{
    text-align: right;
  }
  i.menu{
    background-image: url("../assets/images/menu@2x.png");
  }
  i.userinfo{
    background-image: url("../assets/images/userinfo@2x.png");
  }
  i.shopinfo{
    background-image: url("../assets/images/shopinfo@2x.png");
  }
</style>
